﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Benefit.Models.Sys
{
    /// <summary>
    /// 服务器状态
    /// </summary>
    public class ServerStatus
    {
        /// <summary>
        /// 服务器状态
        /// </summary>
        public static _ServerStatus Status { get; set; }
        ///// <summary>
        ///// 设置目前服务器状态
        ///// </summary>
        ///// <returns></returns>
        //public static void SetServerStatus(int _status)
        //{
        //    Status = _status;
        //}
        ///// <summary>
        ///// 得到服务器目前状态
        ///// </summary>
        ///// <returns></returns>
        //public static int GetServerStatus()
        //{
        //    return Status;
        //}
    }
    /// <summary>
    /// 服务器状态枚举
    /// </summary>
    public enum _ServerStatus
    {
        /// <summary>
        /// 结算中，忙，不能登录
        /// </summary>
        Bussy = 1,
        /// <summary>
        /// 空闲，可以登录查询
        /// </summary>
        Free = 0,
        /// <summary>
        /// 网站暂时关闭，调整数据
        /// </summary>
        Close = 2
    }

}
